﻿using System.Collections.Generic;

namespace SuckerPunch.Domain
{
    public class ServerGroup
    {
        public virtual int Id { get; private set; }

        public virtual string Name { get; set; }

        public virtual List<Server> ServersInGroup { get; set; }


        public ServerGroup()
        {
            ServersInGroup = new List<Server>();
        }

        public virtual void AddServer(Server server)
        {
            server.ServerGroup = this;
            ServersInGroup.Add(server);
        }
    }
}
